home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 6
/
Aminet 6 - June 1995.iso
/
Aminet
/
dev
/
gcc
/
libnixV0_8.lha
/
gnu
/
libnix-sources.lha
/
sources
/
nix
/
setjmp
/
longjmp.c
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1994-12-12
|
452 b
|
10 lines
asm(".text ;" /* doing this in c is very hard */
".even ;"
".globl _longjmp ;"
"_longjmp: ;"
" movel sp@(4),a0 ;" /* get address of jmp_buf */
" movel sp@(8),d0 ;" /* get returncode */
" moveml a0@(4),#0xfcfc;" /* restore all registers (including sp) except scratch */
" movel a0@,sp@ ;" /* restore returnaddress */
" rts ;");